home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue10.arc / TVWLEAVE.C < prev    next >
C/C++ Source or Header  |  1988-08-13  |  1KB  |  29 lines

  1. /*=======================================================*/
  2. /*  TVWLEAVE.C                                           */
  3. /*                                                       */
  4. /*  (c) Copyright 1988 Ralf Brown  All Rights Reserved   */
  5. /*  May be freely copied for noncommercial use, so long  */
  6. /*  as this copyright notice remains intact, and any     */
  7. /*  changes are marked in the comment blocks preceding   */
  8. /*  functions.                                           */
  9. /*=======================================================*/
  10.  
  11. #include "tvapi.h"
  12. #include "tvstream.h"
  13.  
  14. /*=======================================================*/
  15. /* TVwin_leave  set whether writing leaves attributes    */
  16. /*              untouched                                */
  17. /*   Ralf Brown 4/8/88                                   */
  18. /*=======================================================*/
  19.  
  20. void pascal TVwin_leave(OBJECT win, int leave)
  21. {
  22.    static BYTE leave_stream[] = { S_WINDOW(1), WS_LEAVEATTR } ;
  23.    static BYTE write_stream[] = { S_WINDOW(1), WS_WRITEATTR } ;
  24.  
  25.    TVwin_stream(win, leave?leave_stream:write_stream) ;
  26. }
  27.  
  28. /* End of TVWLEAVE.C */
  29.